<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/web/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/res/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/res/css/skin_/form.css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/res/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/web/jquery.easyui.min.js"></script>




<title>基础信息</title>
</head>

<body>
<div id="container">
	<div id="hd">
    </div>
    <form action="<%=request.getContextPath() %>/manager/do_user.jsp" method="post">
    <div id="bd">
    	<div id="main">
            <h2 class="subfild">
            	<span>账号信息</span>
            </h2>
            <div class="subfild-content base-info">
            	<div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>用户名</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="用户名" id="account" name="account"/>
                    </div>
                    <%-- 
                    <span class="kv-item-tip">标题字数限制在35个字符</span>
                    --%>
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>密码</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="密码" id="pwd" name="pwd"/>
                    </div>
                    <%-- 
                    <span class="kv-item-tip">标题字数限制在35个字符</span>
                    --%>
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>确认密码</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="确认密码" id="pwd2" name="pwd2"/>
                    </div>
                    <%-- 
                    <span class="kv-item-tip">标题字数限制在35个字符</span>
                    --%>
                </div>
            </div>
            
            <h2 class="subfild">
            	<span>基本资料</span>
            </h2>
            
            <div class="subfild-content remarkes-info">
            	 <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>姓名</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="姓名" id="name" name="name"/>
                    </div>
                </div>  
                
                           
                <div class="kv-item ue-clear">
                	<label>所在部门</label>
                	
               			<!--
                    	<select id="dept" name="dept">
                        	<option value="设计部">设计部</option>
                            <option value="技术部">技术部</option>
                            <option value="人力资源部">人力资源部</option>
                        </select>
                          -->
                        <select id="cc" class="easyui-combotree" style="width:377px;height:30px" >
                        	
                  </select>
                       
            	
                    
                </div>
                <div class="kv-item ue-clear">
                	<label>角色</label>
                	<div class="kv-item-content">
                        <input id="role-comb" type="text" style="width:377px;height:30px" name="role" >  
                    </div>
                    
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>手机</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="手机" id="phone" name="phone"/>
                    </div>
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>邮箱</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="邮箱" id="email" name="email"/>
                    </div>
                </div>
                <div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>QQ</label>
                	<div class="kv-item-content">
                    	<input type="text" placeholder="QQ" id="qq" name="qq"/>
                    </div>
                </div>
            	<div class="kv-item ue-clear">
                	<label><span class="impInfo">*</span>备注</label>
                	<div class="kv-item-content">
                    	<textarea name="mark" placeholder="备注" id="content" style="width:500px;height:140px;"></textarea>
                    </div>
                </div>
            </div>
            
            <div class="buttons">
                <input class="button" type="button" value="保存" />
            </div>
        </div>
        </form>
    </div>
</div>
</body>

<script type="text/javascript">
	//$('select').select();
	showRemind('input[type=text],textarea','color5');
	//UM.getEditor('content');
	$('#role-comb').combobox({
		url:'role/role.do?reqCode=findRolesForCombo',
		valueField:'id',    
    	textField:'name'
	});
	
	
	$('#cc').combotree({ 
    	url: '<%=request.getContextPath()%>/manager/dept/dept.do?reqCode=findDeptTree'  
	}); 

    $('input[type=button]').click(function(){
    	var v= $('#role-comb').combobox('getValue');
    	//alert(v);
    	var t = $('#cc').combotree('tree');
    	var node = t.tree('getSelected');
    	alert(node.text);
    });
</script>
</html>
